home *** CD-ROM | disk | FTP | other *** search
/ Delphi Magazine Collection 2001 / Delphi Magazine Collection 20001 (2001).iso / DISKS / Issue51 / Ligen / Readme.txt < prev   
Encoding:
Text File  |  1999-10-14  |  1.7 KB  |  45 lines

  1. Update To the Ligen Utility, From  John Wilson
  2. ==============================================
  3.  
  4. Mr Vassbotn,
  5.  
  6. Having read your article published in Issue 50 of The Delphi Magazine, I
  7. have successfully been able to implement an excellent debugging tool which I
  8. feel would otherwise be beyond my ability. I did however have a problem
  9. using the LiGen utility, which I have since fixed. I thought it might be
  10. appropriate to send you details of the problem, and how I fixed it...
  11.  
  12. The Problem
  13.  
  14. I copied the entire Exception directory from the Cover CD to my
  15. C:\Program Files\Borland\delphi4\Projects\ directory, I opened FileDumpTest.dpr
  16. and tried to 'LiGen' it, but the Dos box appeared and flashed away immediately.
  17. Running LiGen from the command prompt allowed my to see the following:
  18.  
  19. >Ligen C:\Program Files\Borland\Delphi4\Projects\Except Handler\dumpfiletest.dpr /o /p /v4.0
  20.  
  21.   RTLI Generator/DCC32 launcher for Delphi2  Version 1.0
  22.   **Error**  Cannot find project option file "bluh\bluh\dumpfiletest.DOF"
  23.                                              {really daft directory}
  24.   Press Enter to exit
  25.  
  26. This I thought might be down to the spaces in my path/file name. It was.
  27.  
  28. The Solution
  29.  
  30. I changed the source in LiGen from line 368 as follows:
  31.  
  32.   {John Wilson+ Place ProjectName in quotes to allow for spaces in path/filename}
  33.   DccParms := Concat ('"', ProjectName, '" ', ExtraCmdLine, CtrlParam);
  34.   WriteLn ('Dcc32 parameters: ' +DccParms);
  35.   ErrCode := Exec(DCCName, DccParms);
  36.   {John Wilson+}
  37.  
  38. John Wilson
  39. Ethos Business Solutions
  40. john@ethosmarketing.com
  41.  
  42. The full (revised) source code is included in this directory.
  43.  
  44. Thanks for your input, John!
  45.